package edu.nwpu.zya.coreops.modules.resource.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.nwpu.zya.coreops.common.utils.PageUtils;
import edu.nwpu.zya.coreops.common.utils.Query;

import edu.nwpu.zya.coreops.modules.resource.dao.RdsMetricRelationDao;
import edu.nwpu.zya.coreops.modules.resource.entity.RdsMetricRelationEntity;
import edu.nwpu.zya.coreops.modules.resource.service.RdsMetricRelationService;


@Service("rdsMetricRelationService")
public class RdsMetricRelationServiceImpl extends ServiceImpl<RdsMetricRelationDao, RdsMetricRelationEntity> implements RdsMetricRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RdsMetricRelationEntity> page = this.page(
                new Query<RdsMetricRelationEntity>().getPage(params),
                new QueryWrapper<RdsMetricRelationEntity>()
        );

        return new PageUtils(page);
    }

}